package co.edu.uniandes.distribuidos.checkpoint.events;

import co.edu.uniandes.distribuidos.peer.Peer;

public class TransferEvent extends Event {

	private String fileName;
	
	private String peerName;
	
	private String size;
	
	public TransferEvent(String fileName, String peerName, String size) {
		super();
		this.fileName = fileName;
		this.peerName = peerName;
		this.size = size;
	}
	
	
	public TransferEvent(){
		
	}
	
	@Override
	public void execute(Peer peer) {
		peer.registerTransfer(fileName, peerName, size);

	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getPeerName() {
		return peerName;
	}

	public void setPeerName(String peerName) {
		this.peerName = peerName;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

}
